package com.example.springmvcdemo.service;

/*
 * @author zzr
 * @date: 2025/09/22  19:10
 * @description:
 */

import com.example.springmvcdemo.mapper.MessageInfoMapper;
import com.example.springmvcdemo.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageInfoService {

    @Autowired
    private MessageInfoMapper messageInfoMapper;

    public Integer addMessage(MessageInfo messageInfo) {
        return messageInfoMapper.addMessage(messageInfo);
    }

    public List<MessageInfo> queryAll() {
        return messageInfoMapper.queryAll();
    }
}
